package aquactl.comapi.objects;

public class Timer implements Comparable<Timer>{
	private int id;
	private String hourOn;
	private String hourOff;
	private String minuteOn;
	private String minuteOff;
	private boolean on;
	private boolean active;
	private int powerId;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getHourOn() {
		return hourOn;
	}
	public void setHourOn(String hourOn) {
		this.hourOn = hourOn;
	}
	public String getHourOff() {
		return hourOff;
	}
	public void setHourOff(String hourOff) {
		this.hourOff = hourOff;
	}
	public String getMinuteOn() {
		return minuteOn;
	}
	public void setMinuteOn(String minuteOn) {
		this.minuteOn = minuteOn;
	}
	public String getMinuteOff() {
		return minuteOff;
	}
	public void setMinuteOff(String minuteOff) {
		this.minuteOff = minuteOff;
	}
	public boolean isOn() {
		return on;
	}
	public void setOn(boolean on) {
		this.on = on;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	public boolean isActive() {
		return active;
	}
	public void setPowerId(int powerId) {
		this.powerId = powerId;
	}
	public int getPowerId() {
		return powerId;
	}
	@Override
	public int compareTo(Timer o) {
		return getId() - o.getId();
		
	}
}
